var mydata={
			"errCode":0,
			"data":[
				{"id":1,"no":"BJ454545945","money":36,"datas":350,"voucher":"无","city":"北京","way":"非诉（20%）转让（面议）诉讼(15%)","State":"已应标...","apply":1,"collection":5,"release":"2015年10月19日"},
				{"id":2,"no":"BJ455455565","money":43,"datas":216,"voucher":"有","city":"南京","way":"非诉（34%）转让（面议）诉讼(16%)","State":"招标中...","apply":0,"collection":1,"release":"2015年10月30日"},
				{"id":3,"no":"BJ454546594","money":64,"datas":216,"voucher":"有","city":"天津","way":"非诉（20%）转让（面议）诉讼(17%)","State":"待应标...","apply":0,"collection":5,"release":"2015年10月30日"},
				{"id":4,"no":"BJ454559465","money":53,"datas":216,"voucher":"有","city":"南昌","way":"非诉（24%）转让（面议）诉讼(17%)","State":"待应标...","apply":2,"collection":5,"release":"2015年06月25日"},
				{"id":5,"no":"BJ455455465","money":44,"datas":251,"voucher":"有","city":"天津","way":"非诉（24%）转让（面议）诉讼(15%)","State":"待应标...","apply":1,"collection":1,"release":"2015年06月30日"},
				{"id":6,"no":"BJ464559465","money":33,"datas":156,"voucher":"有","city":"南昌","way":"非诉（25%）转让（面议）诉讼(17%)","State":"已应标...","apply":2,"collection":5,"release":"2015年10月30日"},
				{"id":7,"no":"BJ455455465","money":23,"datas":251,"voucher":"有","city":"天津","way":"非诉（30%）转让（面议）诉讼(15%)","State":"招标中...","apply":2,"collection":1,"release":"2015年06月30日"},
				{"id":8,"no":"BJ464559465","money":13,"datas":557,"voucher":"有","city":"北京","way":"非诉（24%）转让（面议）诉讼(17%)","State":"招标中...","apply":2,"collection":1,"release":"2015年09月30日"},
				{"id":9,"no":"BJ455455565","money":53,"datas":216,"voucher":"有","city":"南昌","way":"非诉（24%）转让（面议）诉讼(17%)","State":"招标中...","apply":1,"collection":5,"release":"2015年10月25日"},
				{"id":10,"no":"BJ45944656","money":83,"datas":164,"voucher":"有","city":"南京","way":"非诉（30%）转让（面议）诉讼(17%)","State":"招标中...","apply":1,"collection":1,"release":"2015年05月30日"},
				{"id":11,"no":"BJ45545556","money":73,"datas":540,"voucher":"有","city":"北京","way":"非诉（34%）转让（面议）诉讼(15%)","State":"已应标...","apply":2,"collection":1,"release":"2015年10月30日"},
				{"id":12,"no":"BJ45456565","money":63,"datas":256,"voucher":"有","city":"南昌","way":"非诉（20%）转让（面议）诉讼(18%)","State":"已应标...","apply":2,"collection":5,"release":"2015年09月30日"},
				{"id":13,"no":"BJ45545565","money":63,"datas":544,"voucher":"有","city":"北京","way":"非诉（34%）转让（面议）诉讼(15%)","State":"待应标...","apply":2,"collection":1,"release":"2015年10月30日"},
				{"id":14,"no":"BJ45456565","money":53,"datas":541,"voucher":"有","city":"天津","way":"非诉 (20%）转让（面议）诉讼(15%)","State":"待应标...","apply":1,"collection":5,"release":"2015年09月25日"},
				{"id":15,"no":"BJ45545565","money":33,"datas":256,"voucher":"有","city":"南昌","way":"非诉（40%）转让（面议）诉讼(15%)","State":"待应标...","apply":2,"collection":1,"release":"2015年10月30日"},
				{"id":16,"no":"BJ45546565","money":13,"datas":760,"voucher":"有","city":"天津","way":"非诉（34%）转让（面议）诉讼(18%)","State":"招标中...","apply":2,"collection":5,"release":"2015年09月30日"},
				{"id":17,"no":"BJ45555565","money":14,"datas":155,"voucher":"有","city":"北京","way":"非诉（20%）转让（面议）诉讼(17%)","State":"招标中...","apply":1,"collection":1,"release":"2015年10月30日"},
				{"id":18,"no":"BJ44546565","money":12,"datas":534,"voucher":"无","city":"南京","way":"非诉（20%）转让（面议）诉讼(17%)","State":"已应标...","apply":1,"collection":1,"release":"2015年10月25日"}
				]
		};
		//创建代码片段

		function create(data,start,end){
			var data=data.slice(start,end);
			var html="<div>";
			for(var i= 0;i<data.length;i++){
			//for(var i=data.length-1;i>=0;i--){
			html+="<div id='queryMsg'>";
			html+="<div class='zhaolist'><p class='listp'><span title='债管家推荐优质项目' class='jian'></span><span title='已通过平台资质认证' class='cheng'></span></p>";
			html+="<div class='zhaolistl'><h3>不良资产编号："+data[i].no+"</h3><p class='quan'><span class='pronum'>"+data[i].money+"万</span>债权金额</p><p><span class='tui'>推荐指数:</span><span class='star1'></span><span class='star1'></span><span class='star1'></span><span class='star'></span><span class='star'></span></p></div>";
			html+="<div class='zhaolistm'><div class='listmvip'><h3 style='display: none;'>null</h3></div>";
			html+="<p class='listm2'>处置方式：<span class='bold'>"+data[i].way+"</span></p>";
			html+="<table cellspacing='0'><tbody><tr><td>逾期时间</td><td>所在地</td><td>债权凭证</td></tr><tr><td><span class='tablenum'>"+data[i].datas+"天</span></td><td><span class='tablenum'>"+data[i].city+"市</span></td><td><span class='tablenum'>"+data[i].voucher+"</span></td></tr></tbody></table></div>";
			html+="<div class='zhaolistr'><h3>状态：<span>"+data[i].State+"</span></h3><p class='zhaolistrp'><a class='listbtn' target='_blank' href=''>查看详情</a></p><p class='list_shen'>申请数<span class='list_shens'>"+data[i].apply+"</span> 收藏数 <span>"+data[i].collection+"</span></p><p>发布时间："+data[i].release+"</p></div>";
			html+="<div style='display:none'>"+data[i].diyu+""+data[i].states+"</div>";
			html+="</div>";
			}
			html+="</div>";
			return html;
		}
		//按逾期时间排序
		function sortBydatas(data){
			data.sort(function(x,y){
				return x.datas>y.datas?1:-1;
			});
			return data;
		}
		//初始化函数，默认按时间排序
		/*function init(){
			var data=sortBydatas(mydata.data);
			//$(".zhao3con").append(create(mydata.data));
		}*/




		/*$(function(){
			init();
				$(".btn-geren").addClass("lisper");
				$(".btn-qiye").removeClass("lisper");
				$(".btn-yhang").removeClass("lisper");
				var data=sortBydatas(mydata.data);
				$(".zhao3con").empty().append(create(mydata.data));

		})*/
var mydata2={
			"errCode":0,
			"data":[
				{"id":1,"no":"BJ454545945","money":36,"datas":350,"voucher":"无","city":"北京","way":"非诉（20%）转让（面议）诉讼(15%)","State":"已应标...","apply":1,"collection":5,"release":"2015年10月20日"},
				{"id":2,"no":"BJ455455565","money":43,"datas":216,"voucher":"有","city":"南京","way":"非诉（34%）转让（面议）诉讼(16%)","State":"招标中...","apply":0,"collection":1,"release":"2015年10月30日"},
				{"id":3,"no":"BJ454546594","money":64,"datas":216,"voucher":"有","city":"天津","way":"非诉（20%）转让（面议）诉讼(17%)","State":"待应标...","apply":0,"collection":5,"release":"2015年10月30日"},
				{"id":4,"no":"BJ454559465","money":53,"datas":216,"voucher":"有","city":"南昌","way":"非诉（24%）转让（面议）诉讼(17%)","State":"待应标...","apply":2,"collection":5,"release":"2015年06月25日"},
				{"id":5,"no":"BJ455455465","money":44,"datas":251,"voucher":"有","city":"天津","way":"非诉（24%）转让（面议）诉讼(15%)","State":"待应标...","apply":1,"collection":1,"release":"2015年06月30日"},
				{"id":6,"no":"BJ464559465","money":33,"datas":156,"voucher":"有","city":"南昌","way":"非诉（25%）转让（面议）诉讼(17%)","State":"已应标...","apply":2,"collection":5,"release":"2015年10月30日"},
				{"id":7,"no":"BJ455455465","money":23,"datas":251,"voucher":"有","city":"天津","way":"非诉（30%）转让（面议）诉讼(15%)","State":"招标中...","apply":2,"collection":1,"release":"2015年06月30日"},
				{"id":8,"no":"BJ464559465","money":13,"datas":557,"voucher":"有","city":"北京","way":"非诉（24%）转让（面议）诉讼(17%)","State":"招标中...","apply":2,"collection":1,"release":"2015年09月30日"},
				{"id":9,"no":"BJ455455565","money":53,"datas":216,"voucher":"有","city":"南昌","way":"非诉（24%）转让（面议）诉讼(17%)","State":"招标中...","apply":1,"collection":5,"release":"2015年10月25日"},
				{"id":10,"no":"BJ45944656","money":83,"datas":164,"voucher":"有","city":"南京","way":"非诉（30%）转让（面议）诉讼(17%)","State":"招标中...","apply":1,"collection":1,"release":"2015年05月30日"},
				{"id":11,"no":"BJ45545556","money":73,"datas":540,"voucher":"有","city":"北京","way":"非诉（34%）转让（面议）诉讼(15%)","State":"已应标...","apply":2,"collection":1,"release":"2015年10月30日"},
				{"id":12,"no":"BJ45456565","money":63,"datas":256,"voucher":"有","city":"南昌","way":"非诉（20%）转让（面议）诉讼(18%)","State":"已应标...","apply":2,"collection":5,"release":"2015年09月30日"},
				{"id":13,"no":"BJ45545565","money":63,"datas":544,"voucher":"有","city":"北京","way":"非诉（34%）转让（面议）诉讼(15%)","State":"待应标...","apply":2,"collection":1,"release":"2015年10月30日"},
				{"id":14,"no":"BJ45456565","money":53,"datas":541,"voucher":"有","city":"天津","way":"非诉 (20%）转让（面议）诉讼(15%)","State":"待应标...","apply":1,"collection":5,"release":"2015年09月25日"},
				{"id":15,"no":"BJ45545565","money":33,"datas":256,"voucher":"有","city":"南昌","way":"非诉（40%）转让（面议）诉讼(15%)","State":"待应标...","apply":2,"collection":1,"release":"2015年10月30日"},
				{"id":16,"no":"BJ45546565","money":13,"datas":760,"voucher":"有","city":"天津","way":"非诉（34%）转让（面议）诉讼(18%)","State":"招标中...","apply":2,"collection":5,"release":"2015年09月30日"},
				{"id":17,"no":"BJ45555565","money":14,"datas":155,"voucher":"有","city":"北京","way":"非诉（20%）转让（面议）诉讼(17%)","State":"招标中...","apply":1,"collection":1,"release":"2015年10月30日"},
				{"id":18,"no":"BJ54546565","money":16,"datas":254,"voucher":"有","city":"北京","way":"非诉（34%）转让（面议）诉讼(17%)","State":"招标中...","apply":2,"collection":1,"release":"2015年09月25日"},
				{"id":19,"no":"BJ45455565","money":18,"datas":155,"voucher":"有","city":"南昌","way":"非诉（20%）转让（面议）诉讼(18%)","State":"招标中...","apply":1,"collection":5,"release":"2015年10月30日"},
				{"id":20,"no":"BJ44546565","money":15,"datas":355,"voucher":"有","city":"北京","way":"非诉（20%）转让（面议）诉讼(15%)","State":"待应标...","apply":2,"collection":1,"release":"2015年09月30日"},
				{"id":21,"no":"BJ45446565","money":52,"datas":155,"voucher":"有","city":"天津","way":"非诉（34%）转让（面议）诉讼(15%)","State":"待应标...","apply":2,"collection":5,"release":"2015年10月30日"},
				{"id":22,"no":"BJ45456565","money":19,"datas":504,"voucher":"有","city":"南昌","way":"非诉（20%）转让（面议）诉讼(17%)","State":"待应标...","apply":2,"collection":1,"release":"2015年09月25日"},
				{"id":23,"no":"BJ44546565","money":12,"datas":534,"voucher":"无","city":"南京","way":"非诉（20%）转让（面议）诉讼(17%)","State":"已应标...","apply":1,"collection":1,"release":"2015年10月25日"}
				]
		};
		//创建代码片段
		function create2(data,start,end){
			var data=data.slice(start,end);
			var html="<div>";
			for(var i= 0;i<data.length;i++){
			html+="<div id='queryMsg'>";
			html+="<div class='zhaolist'><p class='listp'><span title='债管家推荐优质项目' class='jian'></span><span title='已通过平台资质认证' class='cheng'></span></p>";
			html+="<div class='zhaolistl'><h3>不良资产编号："+data[i].no+"</h3><p class='quan'><span class='pronumq'>"+data[i].money+"万</span>债权金额</p><p><span class='tui'>推荐指数:</span><span class='star1'></span><span class='star1'></span><span class='star1'></span><span class='star'></span><span class='star'></span></p></div>";
			html+="<div class='zhaolistm'><div class='listmvip'><h3 style='display: none;'>null</h3></div>";
			html+="<p class='listm2'>处置方式：<span class='bold'>"+data[i].way+"</span></p>";
			html+="<table cellspacing='0'><tbody><tr><td>逾期时间</td><td>所在地</td><td>债权凭证</td></tr><tr><td><span class='tablenum'>"+data[i].datas+"天</span></td><td><span class='tablenum'>"+data[i].city+"市</span></td><td><span class='tablenum'>"+data[i].voucher+"</span></td></tr></tbody></table></div>";
			html+="<div class='zhaolistr'><h3>状态：<span>"+data[i].State+"</span></h3><p class='zhaolistrp'><a class='listbtn' target='_blank' href=''>查看详情</a></p><p class='list_shen'>申请数<span class='list_shens'>"+data[i].apply+"</span> 收藏数 <span>"+data[i].collection+"</span></p><p>发布时间："+data[i].release+"</p></div>";
			html+="<div style='display:none'>"+data[i].diyu+""+data[i].states+"</div>";
			html+="</div>";
			}
			html+="</div>";
			return html;
		}
var mydata3={
	"errCode":0,
	"data":[
		{"id":1,"no":"BJ454545945","money":36,"datas":350,"voucher":"无","city":"北京","way":"非诉（20%）转让（面议）诉讼(15%)","State":"已应标...","apply":1,"collection":5,"release":"2015年10月21日"},
		{"id":2,"no":"BJ455455565","money":43,"datas":216,"voucher":"有","city":"南京","way":"非诉（34%）转让（面议）诉讼(16%)","State":"招标中...","apply":0,"collection":1,"release":"2015年10月30日"},
		{"id":3,"no":"BJ454546594","money":64,"datas":216,"voucher":"有","city":"天津","way":"非诉（20%）转让（面议）诉讼(17%)","State":"待应标...","apply":0,"collection":5,"release":"2015年10月30日"},
		{"id":4,"no":"BJ454559465","money":53,"datas":216,"voucher":"有","city":"南昌","way":"非诉（24%）转让（面议）诉讼(17%)","State":"待应标...","apply":2,"collection":5,"release":"2015年06月25日"},
		{"id":5,"no":"BJ455455465","money":44,"datas":251,"voucher":"有","city":"天津","way":"非诉（24%）转让（面议）诉讼(15%)","State":"待应标...","apply":1,"collection":1,"release":"2015年06月30日"},
		{"id":6,"no":"BJ464559465","money":33,"datas":156,"voucher":"有","city":"南昌","way":"非诉（25%）转让（面议）诉讼(17%)","State":"已应标...","apply":2,"collection":5,"release":"2015年10月30日"},
		{"id":7,"no":"BJ455455465","money":23,"datas":251,"voucher":"有","city":"天津","way":"非诉（30%）转让（面议）诉讼(15%)","State":"招标中...","apply":2,"collection":1,"release":"2015年06月30日"},
		{"id":8,"no":"BJ464559465","money":13,"datas":557,"voucher":"有","city":"北京","way":"非诉（24%）转让（面议）诉讼(17%)","State":"招标中...","apply":2,"collection":1,"release":"2015年09月30日"},
		{"id":9,"no":"BJ455455565","money":53,"datas":216,"voucher":"有","city":"南昌","way":"非诉（24%）转让（面议）诉讼(17%)","State":"招标中...","apply":1,"collection":5,"release":"2015年10月25日"},
		{"id":10,"no":"BJ45944656","money":83,"datas":164,"voucher":"有","city":"南京","way":"非诉（30%）转让（面议）诉讼(17%)","State":"招标中...","apply":1,"collection":1,"release":"2015年05月30日"},
		{"id":11,"no":"BJ45545556","money":73,"datas":540,"voucher":"有","city":"北京","way":"非诉（34%）转让（面议）诉讼(15%)","State":"已应标...","apply":2,"collection":1,"release":"2015年10月30日"},
		{"id":12,"no":"BJ45456565","money":63,"datas":256,"voucher":"有","city":"南昌","way":"非诉（20%）转让（面议）诉讼(18%)","State":"已应标...","apply":2,"collection":5,"release":"2015年09月30日"},
		{"id":13,"no":"BJ45545565","money":63,"datas":544,"voucher":"有","city":"北京","way":"非诉（34%）转让（面议）诉讼(15%)","State":"待应标...","apply":2,"collection":1,"release":"2015年10月30日"},
		{"id":14,"no":"BJ45456565","money":53,"datas":541,"voucher":"有","city":"天津","way":"非诉 (20%）转让（面议）诉讼(15%)","State":"待应标...","apply":1,"collection":5,"release":"2015年09月25日"},
		{"id":15,"no":"BJ45545565","money":33,"datas":256,"voucher":"有","city":"南昌","way":"非诉（40%）转让（面议）诉讼(15%)","State":"待应标...","apply":2,"collection":1,"release":"2015年10月30日"},
		{"id":16,"no":"BJ45546565","money":13,"datas":760,"voucher":"有","city":"天津","way":"非诉（34%）转让（面议）诉讼(18%)","State":"招标中...","apply":2,"collection":5,"release":"2015年09月30日"},
		{"id":17,"no":"BJ45555565","money":14,"datas":155,"voucher":"有","city":"北京","way":"非诉（20%）转让（面议）诉讼(17%)","State":"招标中...","apply":1,"collection":1,"release":"2015年10月30日"},
		{"id":18,"no":"BJ54546565","money":16,"datas":254,"voucher":"有","city":"北京","way":"非诉（34%）转让（面议）诉讼(17%)","State":"招标中...","apply":2,"collection":1,"release":"2015年09月25日"},
		{"id":19,"no":"BJ45455565","money":18,"datas":155,"voucher":"有","city":"南昌","way":"非诉（20%）转让（面议）诉讼(18%)","State":"招标中...","apply":1,"collection":5,"release":"2015年10月30日"},
		{"id":20,"no":"BJ44546565","money":15,"datas":355,"voucher":"有","city":"北京","way":"非诉（20%）转让（面议）诉讼(15%)","State":"待应标...","apply":2,"collection":1,"release":"2015年09月30日"},
		{"id":21,"no":"BJ45446565","money":52,"datas":155,"voucher":"有","city":"天津","way":"非诉（34%）转让（面议）诉讼(15%)","State":"待应标...","apply":2,"collection":5,"release":"2015年10月30日"},
		{"id":22,"no":"BJ45456565","money":19,"datas":504,"voucher":"有","city":"南昌","way":"非诉（20%）转让（面议）诉讼(17%)","State":"待应标...","apply":2,"collection":1,"release":"2015年09月25日"},
		{"id":23,"no":"BJ45456565","money":17,"datas":256,"voucher":"有","city":"天津","way":"非诉（34%）转让（面议）诉讼(15%)","State":"招标中...","apply":1,"collection":1,"release":"2015年10月25日"},
		{"id":24,"no":"BJ44546565","money":15,"datas":541,"voucher":"有","city":"北京","way":"非诉（20%）转让（面议）诉讼(18%)","State":"招标中...","apply":2,"collection":5,"release":"2015年09月30日"},
		{"id":25,"no":"BJ44546565","money":12,"datas":256,"voucher":"有","city":"南昌","way":"非诉（20%）转让（面议）诉讼(15%)","State":"招标中...","apply":2,"collection":1,"release":"2015年10月25日"},
		{"id":26,"no":"BJ45546565","money":13,"datas":554,"voucher":"有","city":"北京","way":"非诉（34%）转让（面议）诉讼(18%)","State":"招标中...","apply":2,"collection":1,"release":"2015年10月30日"},
		{"id":27,"no":"BJ45555565","money":14,"datas":256,"voucher":"有","city":"天津","way":"非诉（20%）转让（面议）诉讼(19%)","State":"已应标...","apply":1,"collection":5,"release":"2015年05月25日"},
		{"id":28,"no":"BJ54546565","money":16,"datas":514,"voucher":"有","city":"南昌","way":"非诉（25%）转让（面议）诉讼(19%)","State":"已应标...","apply":2,"collection":1,"release":"2015年09月30日"},
		{"id":29,"no":"BJ45455565","money":18,"datas":524,"voucher":"有","city":"南京","way":"非诉（24%）转让（面议）诉讼(15%)","State":"招标中...","apply":1,"collection":1,"release":"2015年10月25日"},
		{"id":25,"no":"BJ44546565","money":15,"datas":256,"voucher":"有","city":"南昌","way":"非诉（30%）转让（面议）诉讼(19%)","State":"待应标...","apply":2,"collection":1,"release":"2015年09月30日"},
		{"id":31,"no":"BJ45446565","money":52,"datas":256,"voucher":"有","city":"南京","way":"非诉（20%）转让（面议）诉讼(15%)","State":"招标中...","apply":2,"collection":5,"release":"2015年05月30日"},
		{"id":32,"no":"BJ45456565","money":19,"datas":540,"voucher":"有","city":"南昌","way":"非诉（25%）转让（面议）诉讼(19%)","State":"招标中...","apply":2,"collection":5,"release":"2015年10月25日"},
		{"id":33,"no":"BJ45456565","money":17,"datas":256,"voucher":"有","city":"南京","way":"非诉（20%）转让（面议）诉讼(152)","State":"招标中...","apply":1,"collection":5,"release":"2015年05月30日"},
		{"id":34,"no":"BJ44546565","money":15,"datas":256,"voucher":"无","city":"南昌","way":"非诉（20%）转让（面议）诉讼(15%)","State":"招标中...","apply":1,"collection":5,"release":"2015年10月30日"},
		{"id":35,"no":"BJ44546565","money":12,"datas":534,"voucher":"无","city":"南京","way":"非诉（20%）转让（面议）诉讼(17%)","State":"已应标...","apply":1,"collection":1,"release":"2015年10月25日"}
	]
};
		//创建代码片段
		function create3(data,start,end){
			var data=data.slice(start,end);
			var html="<div>";
			for(var i= 0;i<data.length;i++){
			html+="<div id='queryMsg'>";
			html+="<div class='zhaolist'><p class='listp'><span title='债管家推荐优质项目' class='jian'></span><span title='已通过平台资质认证' class='cheng'></span></p>";
			html+="<div class='zhaolistl'><h3>不良资产编号："+data[i].no+"</h3><p class='quan'><span class='pronumz'>"+data[i].money+"万</span>债权金额</p><p><span class='tui'>推荐指数:</span><span class='star1'></span><span class='star1'></span><span class='star1'></span><span class='star'></span><span class='star'></span></p></div>";
			html+="<div class='zhaolistm'><div class='listmvip'><h3 style='display: none;'>null</h3></div>";
			html+="<p class='listm2'>处置方式：<span class='bold'>"+data[i].way+"</span></p>";
			html+="<table cellspacing='0'><tbody><tr><td>逾期时间</td><td>所在地</td><td>债权凭证</td></tr><tr><td><span class='tablenum'>"+data[i].datas+"天</span></td><td><span class='tablenum'>"+data[i].city+"市</span></td><td><span class='tablenum'>"+data[i].voucher+"</span></td></tr></tbody></table></div>";
			html+="<div class='zhaolistr'><h3>状态：<span>"+data[i].State+"</span></h3><p class='zhaolistrp'><a class='listbtn' target='_blank' href=''>查看详情</a></p><p class='list_shen'>申请数<span class='list_shens'>"+data[i].apply+"</span> 收藏数 <span>"+data[i].collection+"</span></p><p>发布时间："+data[i].release+"</p></div>";
			html+="<div style='display:none'>"+data[i].diyu+""+data[i].states+"</div>";
			html+="</div>";
			}
			html+="</div>";
			return html;
		}
/*-------first page--------*/
$(function () {
	//渲染分页
	var data1=sortBydatas(mydata.data);
	var data2=sortBydatas(mydata2.data);
	var data3=sortBydatas(mydata3.data);
	$('#pagination').pagination(data1.length, {
		current_page : 0,
		items_per_page : 10,
		num_display_entries : 5,
		callback : function(page_id){
			//模拟ajax去后端读取页数，获取数据并渲染列表的过程
			$('#J_ajax-tab1').empty();
			/*for(var i = 0; i < 10; i++){
			 $('#list-content').append('<tr><td>' + arr[page_id * 10 + i].number + '</td><td>' + arr[page_id * 10 + i]._date + '</td></tr>');
			 }*/
			var start=page_id*10;
			var end=start+9;
			//alert("start is:"+start+"end is:"+end);
			var html=create(data1,start,end);
			$('#J_ajax-tab1').append(html);
		},
		load_first_page : true,
		prev_text : '上一页',
		next_text : '下一页'
	});
	$('#pagination2').pagination(data2.length, {
		current_page : 0,
		items_per_page : 10,
		num_display_entries : 5,
		callback : function(page_id){
			//模拟ajax去后端读取页数，获取数据并渲染列表的过程
			$('#J_ajax-tab2').empty();
			/*for(var i = 0; i < 10; i++){
			 $('#list-content').append('<tr><td>' + arr[page_id * 10 + i].number + '</td><td>' + arr[page_id * 10 + i]._date + '</td></tr>');
			 }*/
			var start=page_id*10;
			var end=start+9;
			//alert("start is:"+start+"end is:"+end);
			var html=create2(data1,start,end);
			$('#J_ajax-tab2').append(html);
		},
		load_first_page : true,
		prev_text : '上一页',
		next_text : '下一页'
	});
	$('#pagination3').pagination(data3.length, {
		current_page : 0,
		items_per_page : 10,
		num_display_entries : 5,
		callback : function(page_id){
			//模拟ajax去后端读取页数，获取数据并渲染列表的过程
			$('#J_ajax-tab3').empty();
			/*for(var i = 0; i < 10; i++){
			 $('#list-content').append('<tr><td>' + arr[page_id * 10 + i].number + '</td><td>' + arr[page_id * 10 + i]._date + '</td></tr>');
			 }*/
			var start=page_id*10;
			var end=start+9;
			//alert("start is:"+start+"end is:"+end);
			var html=create3(data1,start,end);
			$('#J_ajax-tab3').append(html);
		},
		load_first_page : true,
		prev_text : '上一页',
		next_text : '下一页'
	});
});
